package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.PyAntiSpoofingNotifyLogBean;
import com.molichuxing.services.infrastructure.dao.PyAntiSpoofingNotifyLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.PyAntiSpoofingNotifyLogCreateDto;
import com.molichuxing.services.infrastructure.service.PyAntiSpoofingNotifyLogService;
/**
 * 
 * @author liyg
 * 鹏元个人反欺诈服务
 * 2019-09-23
 *
 */
@Service("pyAntiSpoofingNotifyLogService")
public class PyAntiSpoofingNotifyLogServiceImpl implements PyAntiSpoofingNotifyLogService{
	
	@Autowired
	private PyAntiSpoofingNotifyLogMapper pyAntiSpoofingNotifyLogMapper;
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	@Override
	public Integer create(PyAntiSpoofingNotifyLogCreateDto createDto) {
		PyAntiSpoofingNotifyLogBean bean=new PyAntiSpoofingNotifyLogBean();
		BeanUtils.copyProperties(createDto, bean);
		pyAntiSpoofingNotifyLogMapper.create(bean);
		return bean.getId();
	}
}
